package game;

import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JPanel;

public class BackgroundPanel extends JPanel implements ActionListener{

	private Image img;
	private Game frame;
	
	public BackgroundPanel(Game pFrame){
		this.frame = pFrame;
		 ImageIcon ii = new ImageIcon(this.getClass().getResource("/images/youdidit.png"));
	        this.img = ii.getImage();
	       
	}
	
	 public void paint(Graphics g){
	    	g.drawImage(img, 0, 0, null);
	    	this.validate();
	    }

	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		
	}
}
